const express = require('express');
const router = express.Router();


router.get('/', function (req, res) {
    res.json({ message: 'controllers' });
});
router.post('/', function (req, res) {

});
//
router.get('/params', function (req, res) {
    res.json({ message: 'controllers/params' });
});
//
router.get('/:id', function (req, res) {
    res.json({ message: 'controllers/' + req.params.id });
});
router.put('/:id', function (req, res) {

});
router.delete('/:id', function (req, res) {

});
//
router.put('/:id/work_mode', function (req, res) {

});
//
router.get('/:id/params', function (req, res) {
    res.json({ message: 'controllers/' + req.params.id + '/params' })
});
//
router.get('/:id/profile', function (req, res) {
    res.json({message:'controllers/'+req.params.id+'/profile'})
});
//
router.put('/:id/config', function (req, res) {

});
//
router.get('/:id/groups', function (req, res) {
    res.json({message:'controllers/'+req.params.id+'/groups'})
});
router.post('/:id/groups', function (req, res) {
    
});
//
router.get('/:id/groups/:group_id', function (req, res) {
    res.json({message:'controllers/'+req.params.id+'/groups/'+req.params.group_id})
});
router.put('/:id/groups/:group_id', function (req, res) {
   
});
router.delete('/:id/groups/:group_id', function (req, res) {
    
});
module.exports = router;
